<?php
include_once('config/config.php');

// 调用auth函数
$LoginAdmin = auth();

// 首先判断$_GET里面是否有logout
if (!empty($_GET['logout'])) {
    // 判断是否等于1
    if ($_GET['logout'] == 1) {
        // 删除登录用户信息
        setcookie('LoginAdmin', '', time() - 1);
        ShowMsg('退出成功', 'login.php');
    }
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <?php include_once './common/meta.php'; ?>
</head>

<body>
    <?php include_once './common/header.php' ?>

    <?php include_once './common/nav.php' ?>


    <div class="content">
        <div class="header">
            <h1 class="page-title">后台首页</h1>
        </div>
        <ul class="breadcrumb">
            <li><a href="index.php">Home</a> <span class="divider">/</span></li>
            <li class="active">Index</li>
        </ul>
        <div class="home">
            <div class="container">
                <header class="header">
                    <h1>学生成绩管理系统</h1>
                    <p class="subheading">欢迎进入</p>
                </header>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <footer>
                    <hr>
                    <p>&copy; 2017 <a href="#" target="_blank">copyright</a></p>
                </footer>
            </div>
        </div>
    </div>
</body>

</html>
<?php include_once './common/script.php' ?>
<script src='https://api.vvhan.com/api/meihua'></script>
<script src='https://api.vvhan.com/api/snow'></script>
<style>
    .home {
        background-color: #f2f2f2;
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }

    .home .container {
        margin: 0 auto;
        max-width: 1200px;
        padding: 20px;
    }

    .home .header {
        background-color: #2d3e50;
        color: #fff;
        padding: 20px;
        text-align: center;
    }

    .home h1 {
        margin: 0;
        font-size: 48px;
        font-weight: bold;
    }

    .home .subheading {
        margin-top: 20px;
        color: skyblue;
        font-size: 24px;
        margin-bottom: 20px;
    }
</style>